package lianxi.jiekou;

public class Rectangle implements Shape{


        private double length;
        private double width;
        public Rectangle(double length,double width){
            this.width=width;
            this.length = length;
        }

        @Override
        public double getArea() {
            return length*width;
        }

        @Override
        public double getPERIMETER() {
            return 2*(width+length);
        }
    }

